/*
 * Created on Sep 1, 2008
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package ro.qi.framework.sys.scheduler.entities;

import java.util.Date;

import ro.qi.framework.sys.entities.Entity;

/**
 * @author George Pogorelschi
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class SchedulerParameter extends Entity {

	public static final int TYPE_NONE				= 0;
	public static final int TYPE_STRING				= 1;
	public static final int TYPE_BOOLEAN			= 2;
	public static final int TYPE_INTEGER			= 3;
	public static final int TYPE_FLOAT				= 4;
	public static final int TYPE_DATE				= 5;
	 
	public static final int TYPES[]					= {TYPE_STRING, TYPE_BOOLEAN, TYPE_INTEGER, TYPE_FLOAT, TYPE_DATE};

	public SchedulerParameter() {
		super();
	}

	public SchedulerParameter(int id) {
		super();
		setId(id);
		select();
	}

	public SchedulerParameter(String code) {
		super();
		setCode(code);
		select();
	}

	public void setId(int value) {
		setValue("id", value);
	}

	public int getId() {
		return getIntValue("id");
	}

	public void setCode(String value) {
		setValue("code", value);
	}

	public String getCode() {
		return getStringValue("code");
	}

	public void setType(int type) {
		setValue("type", type);
	}

	public int getType() {
		return getIntValue("type");
	}

	public void setStringValue(String value) {
		setValue("stringValue", value);
	}

	public String getStringValue() {
		return getStringValue("stringValue"); 
	}
	
	public void setBooleanValue(boolean value) {
		setValue("booleanValue", value);
	}

	public boolean getBooleanValue() {
		return getBooleanValue("booleanValue"); 
	}
	
	public void setIntegerValue(int value) {
		setValue("integerValue", value);
	}

	public int getIntegerValue() {
		return getIntValue("integerValue"); 
	}
	
	public void setFloatValue(float value) {
		setValue("floatValue", value);
	}

	public float getFloatValue() {
		return getFloatValue("floatValue"); 
	}
	
	public void setDateValue(Date value) {
		setValue("dateValue", value);
	}

	public Date getDateValue() {
		return getDateValue("dateValue"); 
	}
	
	public void setDescription(String value) {
		setValue("description", value);
	}

	public String getDescription() {
		return getStringValue("description"); 
	}
	
}